package cc.rengu.igas.bsps.common.enums;

/**
 * 商户审核状态枚举
 * Created by 王成 on 2018/10/12.
 */
public enum MchntCheckStatusEnum {
    ADD_NON_CHECK("00", "新增未审核"),
    ADD_CHECKING("01", "新增审核中"),
    ADD_CHECK_SUCC("02", "审核成功"),
    ADD_CHECK_FAIL("03", "审核失败"),
    MODIFY_NON_CHECK("40", "修改未审核"),
    MODIFY_CHECKING("41", "修改审核中"),
    MODIFY_CHECK_SUCC("42", "修改审核成功"),
    MODIFY_CHECK_FAIL("43", "修改审核失败"),
    ;
    private String checkStatus;  /* 审核状态 */
    private String checkDesc;    /* 审核状态描述 */

    MchntCheckStatusEnum(String checkStatus, String checkDesc) {
        this.checkStatus = checkStatus;
        this.checkDesc = checkDesc;
    }

    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getCheckDesc() {
        return checkDesc;
    }

    public void setCheckDesc(String checkDesc) {
        this.checkDesc = checkDesc;
    }

    public static String changeStatus(String checkStatus) {
        switch (checkStatus) {
            case "00":
                return "00";
            case "01":
                return "02";
            case "02":
                return "03";
            default:
                return "00";
        }
    }
}
